Determines whether the specified list contains any of the following values.

Namespace:  C1.Phone
Assembly:  C1.Phone (in C1.Phone.dll)

Syntax

C#
public static bool ContainsAny<T>(
	this List<T> list,
	params T[] values
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function ContainsAny(Of T) ( _
	list As List(Of T), _
	ParamArray values As T() _
) As Boolean

Parameters

list
Type: System.Collections.Generic..::..List<(Of <(<'T>)>)>
The list.
values
Type: array<T>[]()[][]
The values.

Type Parameters

T

Return Value

true if the specified list contains any; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type List<(Of <(<'T>)>)>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also